/**
 * 
 */
package bingo.monitor.datasource;



/**
 * @author elvis
 */
public class ConnectionInfo {

	/**
	 * {@link DataSource#getName()}
	 */
	private String datasource;
	
	/**
	 * 打开连接的线程名称
	 */
	private String openThread;
	
	/**
	 * 打开连接的时间
	 */
	private long openTime;
	
	/**
	 * 是否已经关闭
	 */
	private boolean closed;
	
	/**
	 * 打开连接时的调用堆栈
	 */
	private StackTraceElement[] openStack;

	/**
	 * @return the thread
	 */
	public String getOpenThread() {
		return openThread;
	}

	/**
	 * @param thread the thread to set
	 */
	public void setOpenThread(String thread) {
		this.openThread = thread;
	}

	/**
	 * @return the openTime
	 */
	public long getOpenTime() {
		return openTime;
	}

	/**
	 * @param openTime the openTime to set
	 */
	public void setOpenTime(long openTime) {
		this.openTime = openTime;
	}

	/**
	 * @return the openStack
	 */
	public StackTraceElement[] getOpenStack() {
		return openStack;
	}

	/**
	 * @param openStack the openStack to set
	 */
	public void setOpenStack(StackTraceElement[] openStack) {
		this.openStack = openStack;
	}

	/**
	 * @return the datasource
	 */
	public String getDataSource() {
		return datasource;
	}

	/**
	 * @param datasource the datasource to set
	 */
	public void setDataSource(String datasource) {
		this.datasource = datasource;
	}

	/**
	 * @return the closed
	 */
	public boolean isClosed() {
		return closed;
	}

	/**
	 * @param closed the closed to set
	 */
	public void setClosed(boolean closed) {
		this.closed = closed;
	}

	public String getDatasource() {
		return datasource;
	}

	public void setDatasource(String datasource) {
		this.datasource = datasource;
	}
}
